package com.gy.service.impl;

import com.aaa.entity.OrderBackfeeItem;
import com.aaa.vo.Result;
import com.gy.mapper.OrderBackfeeltemMapper;
import com.gy.service.OrderBackfeeItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author GaoYa
 * @Date 2023/3/24 18:04
 * @Version 1.5
 */
@Service
public class OrderBackfeeItemServiceImpl implements OrderBackfeeItemService {
    @Autowired(required = false)
    private OrderBackfeeltemMapper orderBackfeeltemDao;

    /**
     * 查看详情
      * @param orderId
     * @return
     */
    @Override
    public Result<List<OrderBackfeeItem>> findAllByUserId(String orderId) {
        List<OrderBackfeeItem> allByUserId = orderBackfeeltemDao.findAllByUserId(orderId);
        return new Result<>(2000,"查询成功",allByUserId);
    }
}
